package org.github.choviwu.example.service.impl;

import org.github.choviwu.example.common.model.SysConfig;
import org.github.choviwu.example.common.service.BaseServiceImpl;
import org.github.choviwu.example.common.service.SysConfigService;
import org.github.choviwu.example.mapper.SysConfigMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysConfigServiceImpl extends BaseServiceImpl<SysConfig> implements SysConfigService{

    private final SysConfigMapper configMapper;
    @Autowired
    SysConfigServiceImpl(SysConfigMapper configMapper){
        this.configMapper = configMapper;
    }

    public String  getValueByKey(String key){
        return configMapper.getValueByKey(key);
    }
}
